<!DOCTYPE html>
<html ng-app="notesApp">
	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>
	<body ng-controller="MainCtrl as ctrl">
		<form ng-submit="ctrl.submit()">
			<input type="text" ng-model="ctrl.user.username"/>
			<input type="password" ng-model="ctrl.user.password"/>
			<input type="submit" value="submit"/>
		</form>
	</body>
	<script src="js/angular.min.js" type="text/javascript" charset="utf-8"></script>
	<script type="text/javascript">
		angular.module('notesApp', [])
		.controller('MainCtrl', [function(){
			var self = this;
			self.submit = function(){
				console.log(self.user);
			};
		}]);
	</script>
</html>
